﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Runtime.InteropServices;

namespace SilverlightViewport.Common.Interop
{
    [ComImport, Guid("00000115-0000-0000-C000-000000000046"), 
    InterfaceType(ComInterfaceType.InterfaceIsIUnknown)]
    public interface IOleInPlaceUIWindow : IOleWindow
    {
        [PreserveSig]
        new int GetWindow(out IntPtr phwnd);
        [PreserveSig]
        new int ContextSensitiveHelp([In] int fEnterMode);
        [PreserveSig]
        int GetBorder([Out, MarshalAs(UnmanagedType.LPArray)] RECT[] lprectBorder);
        [PreserveSig]
        int RequestBorderSpace([In, MarshalAs(UnmanagedType.LPArray)] RECT[] pborderwidths);
        [PreserveSig]
        int SetBorderSpace([In, MarshalAs(UnmanagedType.LPArray)] RECT[] pborderwidths);
        [PreserveSig]
        int SetActiveObject([In, MarshalAs(UnmanagedType.Interface)] IOleInPlaceActiveObject pActiveObject, [In, MarshalAs(UnmanagedType.LPWStr)] string pszObjName);
    }
}
